import mysql.connector

mydb = mysql.connector.connect(
    host = '47.98.104.26',
    user = 'airong',
    passwd = 'airong1234',
    database = 'runoob_db'
)

mycursor = mydb.cursor()

sql = 'insert into sites(name,url)values(%s,%s)'
val = ("RUNOOB", "https://www.runoob.com")

mycursor.execute(sql,val)
mydb.commit()